﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using cludg.Web.Core.Validation;
using cludg.Web.Core.ViewModels;

namespace cludg.Web.ViewModels
{
	public class CommentModel : BaseModel
	{
		public string StoryId { get; set; }
		public string CommentId { get; set; }

		[Required(ErrorMessage = ValidationConst.RequiredMessage)]
		[StringLength(500, ErrorMessage = ValidationConst.StringLengthMaxInvalidMessage)]
		[DisplayName("Комментарий")]
		public string CommentBody { get; set; }
	}
}